"""
requests类库的helloWorld: requests类库是依赖urllib3类库实现的
"""
import requests
from requests.models import Response
import simplejson

base_url = 'http://httpbin.org/get'

user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36'

session = requests.Session()
with session:
    response = session.get(base_url, headers={'User-agent': user_agent})
    # requests.models.Response
    print(type(response))
